# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python-scruffington
_pkgname=scruffington
pkgver=0.3.9
pkgrel=1
pkgdesc='The janitor.'
url='https://pypi.org/project/scruffington/#files'
arch=('any')
license=('MIT')
depends=('python')
makedepends=('python-setuptools')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('2895972a93f6f7428a52eb61089af8a5a7fc42a5b300f434de20aee7c7abd960ba58d9aebf811d046d234f5654957052c13825bb878d9aa989d0d4028c08a94a')

build() {
  cd "$_pkgname-$pkgver"

  python setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python setup.py install --prefix=/usr --root="$pkgdir" --optimize=1 \
    --skip-build
}

